package com.eminem.thread.easy2hard.timercreatetask;

import java.util.Timer;
import java.util.TimerTask;

public class Test1 {

	public static void main(String[] args) {
		new Timer().schedule(new TimerTask(){

			@Override
			public void run() {
				System.out.println(Thread.currentThread().getName());
			}
			
		}, 1000);
	}
}
